import request from '@/utils/request'

// 查询线下订单列表
export function listMallOfflineOrder(query) {
  return request({
    url: '/mall/mallOfflineOrder/list',
    method: 'get',
    params: query
  })
}

// 查询线下订单详细
export function getMallOfflineOrder(id) {
  return request({
    url: '/mall/mallOfflineOrder/' + id,
    method: 'get'
  })
}

// 新增线下订单
export function addMallOfflineOrder(data) {
  return request({
    url: '/mall/mallOfflineOrder',
    method: 'post',
    data: data
  })
}

// 修改线下订单
export function updateMallOfflineOrder(data) {
  return request({
    url: '/mall/mallOfflineOrder',
    method: 'put',
    data: data
  })
}

// 删除线下订单
export function delMallOfflineOrder(id) {
  return request({
    url: '/mall/mallOfflineOrder/' + id,
    method: 'delete'
  })
}
